package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

public interface CommentService {

    // 保存comment
    Integer saveComment(Comment comment);

    // 删除comment
    Integer removeComment(ObjectId publishId, Long userId, Integer commentType);

    // 分页查询评论
    PageBeanVo findByPage(ObjectId publishId, Integer commentType, Integer pageNum, Integer pageSize);

    // 查看点赞、评论、喜欢的用户信息
    PageBeanVo findCommentTypeByPage(Long publishUserId, Integer commentType, Integer pageNum, Integer pageSize);

    //视频评论列表
    PageBeanVo findVideoByPage(ObjectId publishId,Integer commentType,Integer pagNum,Integer pageSize);
    //查询单条comment
    Comment findOneComment(ObjectId commentId);
    //对视频评论点赞
    Integer saveLikeComment(Comment comment);
    //对视频评论取消点赞
    Integer removeLikeComment(Comment comment);
}
